﻿using System;

namespace SARS.Entity
{
    public class StudentAbsenceReasonEntity
    {
        public Int32 AttendanceSessionId { get; set; }
        public AttendanceSessionEntity AttendanceSession { get; set; }
        public string StudentAbsenceReason { get; set; }
        public Int32 IsApproved { get; set; }
        public Int32 ModifiedBy { get; set; }
        public TutorEntity TutorModified { get; set; }
        public Int32 Creator { get; set; }
        public StudentEntity StudentNofity { get; set; }
        public DateTime CreatedDate { get; set; }
        public DateTime ModifiedDate { get; set; }

        public string Approved
        {
            get
            {
                switch (IsApproved)
                {
                    case 0:
                        return "Waiting";
                    case 1:
                        return "Approved";
                    case 2:
                        return "Rejected";
                    default:
                        return "Waiting";
                }
            }
        }
    }
}